package com.quick.im.api.user;

import com.quick.im.common.base.BaseResponse;
import com.quick.im.common.entity.User;

import java.util.List;

public interface UserApi {

    /**
     * 用户新增或注册
     * @param request
     * @return
     */
    public BaseResponse saveUser(User request);

    /**
     * 用户登录
     * @param request
     * @return
     */
    public BaseResponse login(User request);

    public BaseResponse deleteUserById(Integer id);


    public BaseResponse UpdateUser(User request);

    public BaseResponse<List<User>> User(User request);

    public BaseResponse<User> getUserById(Integer id);

}
